home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #2 / Monster Media No. 2 (Monster Media)(1994).ISO / pcboard / q_zz140.zip / PCBTEST.BAT < prev    next >
DOS Batch File  |  1994-03-18  |  1KB  |  71 lines

  1. @echo off
  2. if exist pcbpass.txt del pcbpass.txt
  3. if exist pcbfail.txt del pcbfail.txt
  4. cls
  5. echo ┌───────────────────┐
  6. echo │ Processing Upload │
  7. echo └───────────────────┘
  8.  
  9. rem This are 4Dos commands - Command.com users should use GETEXT.EXE
  10. rem                          Included in the ZZ Package
  11. if %@ext[%1]==gif goto diz
  12. if %@ext[%1]==zip goto zip
  13. if %@ext[%1]==arj goto arj
  14. if %@ext[%1]==lzh goto lzh
  15. if %@ext[%1]==txt goto diz
  16. rem End of 4Dos commands
  17. goto plus
  18.  
  19. :zip
  20. echo ■ Testing ZIP file integrity
  21. pkunzip -t %1 > pcbfail.txt
  22. if errorlevel == 1 goto failed
  23. goto diz
  24.  
  25. :arj
  26. echo ■ Testing ARJ file integrity
  27. arj t %1 > pcbfail.txt
  28. if errorlevel == 1 goto failed
  29. goto diz
  30.  
  31. :lzh
  32. echo ■ Testing ARJ file integrity
  33. lha t %1 > pcbfail.txt
  34. if errorlevel == 1 goto failed
  35. goto diz
  36.  
  37.  
  38.  
  39. :diz
  40. echo ■ Executing ZipZap!
  41. lh d:\zipzap\zipzap.exe d:\zipzap\zipzap.cnf %1 %3
  42. del d:\comment.### > nul
  43. if errorlevel==200 goto agefail
  44.  
  45. del pcbfail.txt > nul
  46. goto end
  47.  
  48. :failed
  49. echo ■ CRC ERROR
  50. echo ■ Moving File offline !
  51. move %1 d:\pcb\confs\ > nul
  52. goto end
  53.  
  54.  
  55. :agefail
  56. echo ■ FILE FAILED AGE TEST!
  57. echo ■ Moving File offline !
  58. move %1 d:\pcb\confs\ > nul
  59. goto end
  60.  
  61. :plus
  62.  
  63. echo ■ Executing UBPLUS!
  64. d:\pcb\ubplus d:\pcb\ubplus.cnf %3
  65.  
  66.  
  67. :end
  68. echo ■ Executing fakerlog.exe for NukeDuke (Coming Soon)
  69. @d:\pcb\doors\faker\fakerlog d:\pcb\doors\faker\faker.log %1
  70. echo ■ Done!
  71.